package com.hudilao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hudilao.entity.enumeration.GenderEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("customer")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final Integer FEMALE = 0;
    public static final Integer MALE = 1;
    public static final Integer OTHERS = 2;


    @TableId(type = IdType.ASSIGN_ID)
    //客户ID
    private Long id;

    //微信用户唯一id
    private String openid;

    //客户手机号
    private String phoneNumber;

    //客户性别
    private Integer gender;

    //支付密码
    private String paymentCode;

    private LocalDate birthdate;

}
